
#import "FAMMineContactUsView.h"

@implementation FAMMineContactUsView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"FAMMineContactUsView" owner:self options:nil];
        self = array.firstObject;
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
}
- (IBAction)FAM_emailButtonClick:(UIButton *)sender {
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"mailto://%@",sender.titleLabel.text] ];
    [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) {
        
    }];
}
- (IBAction)FAM_closeButtonClick:(UIButton *)sender {
    [self removeFromSuperview];
}



@end
